package com.usian.service.impl;

import com.usian.mapper.LoginMapper;
import com.usian.mapper.UserMapper;
import com.usian.pojo.User;
import com.usian.service.LoginService;
import com.usian.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private LoginMapper loginMapper;

    @Override
    public User login(String name, String pwd) {
        User user=loginMapper.login(name,pwd);
        return user;
    }
}
